#ifndef SCREEN_PORT_H_
#define SCREEN_PORT_H_

#include <stdint.h>

typedef struct
{
    uint8_t width,height;
	uint8_t *pBuffer;
	uint16_t bufferSize;

	int (*Init)(void);
	void (*Clear)(void);
	void (*Display)(void);
	void (*SetPix)(int x, int y,unsigned int color);
	int (*GetPix)(int x, int y);
	void (*Fill)(int sx,int sy,int Width,int Height,unsigned int color);
	void (*SyncToScreen)(void);
}ScreenPort_t;


extern ScreenPort_t ScreenPort;
void ScreenPortInit(void);


#endif